<?php

    //TODO Use Google Gears

    function addRecentSetting($datetime, $url)
    {

    }

    function getRecentSetting($url)
    {

    }

    function updateRecentSetting($url)
    {

    }

	function writeLocalDeveloper($gadget, $moduleId)
	{
?>
<div id="m_<?php echo $moduleId;?>" class="modbox<?php echo (@$_GET['pinSettings'] == 1) ? "_e" : "";?> ">
	<h2 class="modtitle">
		<a class="delbox" href="#" onclick="return _del('<?php echo $moduleId; ?>',32,'n_32=url%3Dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml%26up_salaryH%3D20000%26up_salary%3D********%26up_timerPaused%3D1%26up_timerStart%3D6422');"></a><a class="minbox" id="m_<?php echo $moduleId;?>_zippy" href="#" onclick="this.blur();return _zm('<?php echo $moduleId; ?>', '32');return false;"></a>


		<span class="my_gadget" style="display:none"></span>

		<div id="m_<?php echo $moduleId;?>_h">
			<a class="mtlink" id="m_<?php echo $moduleId;?>_url" href="http://bonstio.net">
				<span id="m_<?php echo $moduleId;?>_title" class="modtitle_text">Local Developer</span>
			</a>
		</div>
	
	</h2>
	<div id="m_<?php echo $moduleId;?>_b" class="modboxin">

		<!-- Copyright 2007 and beyond, Google Inc.  To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets.  To create your own gadgets, visit http://www.google.com/apis/gadgets -->
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
			<tr>
				<td width="35%" align="right" colspan="1">Gadget filename</td>
				<td width="65%" nowrap="" align="left" colspan="2">&nbsp;
					<input type="text" value="<?php echo (@$_GET['gadget']);?>" name="gadget" id="m_<?php echo $moduleId;?>_<?php echo $moduleId;?>" maxlen="200" size="20"/>
				</td>
			</tr>
			<tr>
				<td colspan=1 align=right width="35%">Pin open settings</td>
				<td colspan=2 nowrap align=left width="65%">&nbsp;
		
					<input type=hidden id=pinSettings name=pinSettings value=<?php echo (@$_GET['pinSettings'] == 1) ? "1" : "0";?>>
					<input type=checkbox <?php echo (@$_GET['pinSettings'] == 1) ? "CHECKED" : "UNCHECKED";?> onClick="_gel('pinSettings').value = this.checked ? '1' : '0';"/> 
				</td>
			</tr>
			<tr>
				<td colspan=1 align=right width="35%">Use offline mode</td>
				<td colspan=2 nowrap align=left width="65%">&nbsp;
		
					<input type=hidden id=offline name=offline value=<?php echo (@$_GET['offline'] == 1) ? "1" : "0";?>>
					<input type=checkbox <?php echo (@$_GET['offline'] == 1) ? "CHECKED" : "UNCHECKED";?> onClick="_gel('offline').value = this.checked ? '1' : '0';"/> 
				</td>
			</tr>
			
			</table>
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
                <tr>
                    <td colspan=2 nowrap align=left><br><a href=""><font size=-1 color=#7777cc></font></a></td>
                    <td colspan=1 align=right valign=bottom>
						<input id=save_<?php echo $moduleId;?> class=submitbtn type=submit value="Save">
                    </td>
                </tr>
            </table>
	</div>
</div>
<?php
	}
?>


